// Filename : hello.cpp
// Just a test for cgi

#include <iostream>
#include "cgihandler.h"
using namespace std;

int main(int argc, char * argv[]) {
	
	CgiHandler cgi;

	cgi.handlerInit();
	string str = cgi.getEnvValue( "REMOTE_ADDR" );

	cout << "content-type: text/html" << endl << endl
	     << "<html>\n"
	     << "	<head>\n"
	     << "		<title>C++</title>\n"
	     << "	</head>\n"
	     << "	<body>\n"
	     << "		<h1>" <<str<<"</h1>\n"
	     << "	</body>\n"
	     << "</html>\n";
}
